package com.ray.udp_listen;

import java.net.*;
import com.ray.basic.BASIC;
import com.ray.udp_listen.myDisplay;
import com.ray.udp_listen.myGather;
import com.ray.udp_listen.myReceive;


public class UdpListen {
    public static void main(String[] args) throws Exception {
        DatagramSocket ds = new DatagramSocket(BASIC.get_listenPort());
        
        Thread receive= new Thread(new myReceive(ds));
        receive.start();
        
        Thread gather= new Thread(new myGather());
        gather.start();
        
        Thread display= new Thread(new myDisplay());
        display.start();
    }
}

